import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/login',
      component: () => import('@/views/Login.vue'),
    },
   { path: '/login/other', component: () => import('@/views/login/Other.vue') },
   { path: '/login/other/note', component: () => import('@/views/login/Note.vue') },
   { path: '/login/other/voice', component: () => import('@/views/login/Voice.vue') },
   { path: '/login/other/face', component: () => import('@/views/login/Face.vue') },
   { path: '/reg', component: () => import('@/views/login/Reg.vue') },

    

    {
      path: '/',
      component: () => import('@/views/Select.vue'),
      meta: { title: '首页' },
      redirect: '/student/index',
      children: [

        {
          path: '/student/',
          component: () => import('@/views/student/Layout.vue'),
          meta: { title: '学生' },
          children: [
            {path:'/student/index',component:()=>import('@/views/student/index/Index.vue')},

          ]

          
        },
      ]
    },


  ]
})

export default router
